package com.victor.controller.test;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.victor.entity.YhUsers;
import com.victor.service.UserService;
import com.victor.utils.Msg;

@RestController
public class WechatController {

	
	@Autowired
	UserService userService;
	
	//获取user信息
	@RequestMapping("getAllUser")
	public Msg getAllUser() {
		List<YhUsers> userlist = userService.getAllUser();
		return Msg.success().add("userlist", userlist);
	}
}
